package com.dog.modules.upms.listener;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 用户
 * @author: Li Kang
 * @create: 2020-05-04 11:46
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    @ExcelProperty(value = "用户名", index = 0)
    private String username ;

    /**
     * 忽略这个字段
     */
    @ExcelIgnore
    private String password ;

    @ExcelProperty(value = "年龄", index = 1)
    private Integer age;

    @ExcelProperty(value = "注册时间", index = 2)
    @DateTimeFormat("yyyy/MM/dd")
    private Date createTime;


}
